// httputils.h: interface for the CLHttpUtils class.
// $Id: httputils.h,v 1.1 2002/09/26 01:53:59 leon Exp $
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_HTTPUTILS_H__16282F32_0799_4605_9544_AAC645992B98__INCLUDED_)
#define AFX_HTTPUTILS_H__16282F32_0799_4605_9544_AAC645992B98__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "str.h"

class CLHttpUtils  
{
public:
	static CLStr url_encode(LPCSTR str);
	static CLStr html_escape(LPCSTR str);
	static CLStr js_escape(LPCSTR str);
	static void url_encode(const CLStr& str,CLStr& dest);
	static void parse_multipart_formdata(const CLStr& str,CLStr& content_type,CLStr& path,CLStrTree& h);
	static void parse_mime(const CLStr& str,CLStr& path,CLStrTree& h);
	static void parse_name(CLStr& str);
	static void parse_query_string(CLStr& str,CLStrTree& h);
	CLHttpUtils() {};
	virtual ~CLHttpUtils() {};

};

#endif // !defined(AFX_HTTPUTILS_H__16282F32_0799_4605_9544_AAC645992B98__INCLUDED_)
